package com.java65;

public class practice1 {
    public static void main(String[] args) {
        double gold = 10000;
        double rate = 0.003;
        for(int i=1;i<=5;i++){
            gold=gold+gold*rate;
        }
        System.out.println("五年后收到的本金为:"+gold);
    }
}
